{extend name="layouts/main" /}
{block name="link"}{/block}
{block name="content"}
<div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
	<div class="layui-body layui-tab-content site-demo site-demo-body" style="top: 0px;left: 0px;">
		<div class="layui-tab-item layui-show">
			<div class="layui-main">
				<div id="LAY_preview">
					<div class="layui-fluid" style="position: relative;margin: 0 auto;padding: 0 0px;">
						<div class="layui-card" style="overflow-y: hidden;float: left;width: 100%;">
							<form class="layui-form" action="">
								<table class="layui-table" lay-filter="tableEvent">
									<colgroup>
										<col width="19%">
										<col>
									</colgroup>
									<tbody>
										<tr>
											<td>ID</td>
											<td>{$info.id}</td>
										</tr>
										<tr>
											<td>钩子名称</td>
											<td>{$info.name}</td>
										</tr>
										<tr>
											<td>钩子描述</td>
											<td>
												<?php
												if($info['description']){
													$arr = str2arr($info['description'],'|');
													foreach($arr as $k=>$v){
														if($k!=0){
															echo "<br><br>";
														}
														echo $v;
													}
												}
												?>
											</td>
										</tr>
										<tr>
											<td>钩子类型</td>
											<td>{$info.type_text}</td>
										</tr>
										<tr>
											<td>钩子挂载的插件</td>
											<td>
												<?php
												if($info['addons']){
													$aarr = str2arr($info['addons'],',');
													foreach($aarr as $k=>$v){
														if($k!=0){
															echo ",&nbsp;&nbsp;";
														}
														echo $v;
													}
												}
												?>
											</td>
										</tr>
										<tr>
											<td>是否系统</td>
											<td>{$info.system?'是':'否'}</td>
										</tr>
										<tr>
											<td>状态</td>
											<td>{$info.status?'开启':'关闭'}</td>
										</tr>
										<tr>
											<td>排序</td>
											<td>{$info.sort}</td>
										</tr>
										<tr>
											<td>创建时间</td>
											<td>{$info.create_time|date="Y-m-d H:i:s"}</td>
										</tr>
										<tr>
											<td>更新时间</td>
											<td>{$info.update_time|date="Y-m-d H:i:s"}</td>
										</tr>
									</tbody>
								</table>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{/block}
{block name="js"}
{/block}